16 / 16

What is a Skip List? How does it improve search time?

Skip Lists

javascript
  1. 1

    Expected search complexity: O(log n).

  2. 2

    Expected insertion and deletion: O(log n).

  3. 3

    Worst-case complexity can be O(n), depending on the random structure.

  4. 4

    Multiple levels act as express lanes over the base linked list.

  5. 5

    Skip Lists are conceptually simpler than many balanced-tree implementations.

  6. 6

    They are useful in ordered indexes and some concurrent data structures.

Difficulty: 5/10

Follow-up Questions

  • How does a Skip List compare with a balanced BST?
  • Why is Skip List complexity probabilistic?
  • How are levels selected?